package com.example.boot03.rntity;

/**
 * @Name: Product
 * @Author: 西风残叶
 * @Company: 朝兮网络工作室
 * @Data:2023/11/10 16:49
 */
public class Product {
    private Integer id;  // 商品编码
    private String title; // 商品标题
    private Double price; // 商品价格
    private Integer num; // 商品库存

    @Override
    public String toString() {
        return "Product{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", price=" + price +
                ", num=" + num +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }
}
